The gills actually have two purposes. First, oxygen is absorbed into the bloodstream within the gills. Second, waste materials are excreted into the water at the gills.